using System;
using System.Collections.Generic;
using System.Text;

namespace MapaMovil
{
    class ArrowPoint
    {
        private double length;
        private double initial_angle, angle;
        private double xPos, yPos;

        public ArrowPoint(double len, double ang)
        {
            length = len;
            initial_angle = ang;
            xPos = yPos = 0;
        }

        public System.Drawing.Point getPoint()
        {
            return new System.Drawing.Point(
                            (int)Math.Round(length*Math.Sin(initial_angle + angle) + xPos),
                            (int)Math.Round(length*Math.Cos(initial_angle + angle) + yPos)
                            );
        }

        public void setAngle(double ang)
        {
            angle = ang;
        }

        public void setPosition(double x, double y)
        {
            xPos = x;
            yPos = y;
        }

    }
}
